package cn.pomelo.secondskill.service;

import cn.pomelo.secondskill.exception.SecondsKillException;
import cn.pomelo.secondskill.model.Goods;
import cn.pomelo.secondskill.model.GoodsDetail;
import cn.pomelo.secondskill.model.Orders;
import cn.pomelo.secondskill.model.OrdersDetail;

import java.util.List;

public interface RedisService {

    List<Goods> list();

    GoodsDetail detail(Integer id);

    OrdersDetail secondsKill(Orders orders) throws SecondsKillException;

    OrdersDetail scOrderInfo(Integer userid, String orderId);

    List<Orders> getOrdersByUserid(Integer userid);

    Orders generate(Integer userid, Integer goodsId) throws SecondsKillException;
}
